package com.agenda.server.recebedores;

import java.io.ObjectInputStream;
import com.agenda.comum.ObjectRecebedorInformacao;
import com.agenda.controller.StatusController;
import com.agenda.model.Usuario;

public class AtualizarStatusCliente extends ObjectRecebedorInformacao {

	@Override
	public void receber(ObjectInputStream objectInput) throws Exception {
		Usuario user = (Usuario) objectInput.readObject();
		String status = (String) objectInput.readObject();
		StatusController.getINSTANCIA().registrarStatus(user, status);
	}

}
